Repository navigation
ci(dependabot): enqueue 重试改为按错误类别匹配(修 #208 漏判 in progress) - #209
Merged
Merged
Conversation
#208 的重试白名单写的是 `required status checks have not succeeded`,但 GitHub 对同 一情形还有第二种措辞: UNPROCESSABLE: Pull request 9 of 14 required status checks are in progress. 于是第 5 次尝试就落到 `*)` 分支 warn+exit —— #205 的 run 45110884855 就是这样在 3 分钟 内退出的(PR 检查随后才全绿,已无人入队)。 改为按错误**类别**匹配:`UNPROCESSABLE` 一律重试(检查未就绪的两种措辞都是它), 另保留 `required status checks` / `not mergeable` / `in progress` 作为兜底; `is closed` / `already …` 仍视为已达目的直接退出;其它错误仍 warn+exit。 四种真实返回串已在本地用 bash 验证分支走向(RETRY / RETRY / RETRY / WARN / TERMINAL)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#208 仍会提前放弃
#208 的重试白名单只覆盖了一种措辞:
而 CI 跑到中途时,GitHub 返回的是另一种:
于是第 5 次尝试就落到
*)分支warn + exit 0—— #205 的 run 45110884855 在 3 分钟内就退出了,而此时必需检查还在跑;等它们全绿时已经没人入队,#205 / #206 依旧停在CLEAN。改动
按错误类别重试,而不是逐个匹配措辞:
UNPROCESSABLE(检查未就绪的两种措辞都是它)required status checks/not mergeable/in progressis closed/already in the merge queue/already queued::warning::带原文退出本地已用真实返回串验证分支走向:
验证计划
合入后再对 #205 / #206 发
@dependabot rebase,期望日志出现多次第 N/40 次后落成已加入 merge queue(第 N 次尝试):{...state:QUEUED},随后由 merge queue 自动合并,全程无人工干预。